<?php

require_once 'init.php';
require_once cf\Config::path.'api/page.php';

$pid = cf\api\page\getID( cf\param::get('id') );
if (!$pid) {
	$pid = cf\api\page\getID('notfound');
}

$page = cf\api\page\get($pid);
$smarty->assign('pageText',cf\api\page\getText($page['id']));

show(
   'page', 
   $page['name'], 
   array(), 				//Pages::getPath($page->id())
   $page['title'], 
   $page['keywords'], 
   $page['descr']
);

?>